package com.e_manager.soft.emanager.idao;

import com.e_manager.soft.emanager.entity.UserEquipment;
import com.e_manager.soft.emanager.entity.parameter.UserEquipmentParameter;

import java.util.List;

/**
 * @author : lip[lip4051@163.com]
 * @create : 2018/3/21 0021 上午 9:21
 */
public interface UserEquipmentDao {
    /**
     * 查询用户设备
     * @param userEquipmentParameter
     * @return
     */
    List<UserEquipment> findUserEquipmentByPage(UserEquipmentParameter userEquipmentParameter);

    /**
     * 根据用户名和id查询用户设备
     * @param userEquipment
     * @return
     */
    int getUserEquipmentByNameAndId(UserEquipment userEquipment);

    /**
     * 添加用户设备
     * @param userEquipment
     */
    void insertUserEquipment(UserEquipment userEquipment);

    /**
     *
     * 查询系统信息
     *
     *
     * @param userEquipment
     */
    void updateUserEquipment(UserEquipment userEquipment);

    /**
     * 查询用户设备编号
     * @param userEquipmentParameter
     * @return
     */
    List<UserEquipment> findUserEquipmentCode(UserEquipmentParameter userEquipmentParameter);
}
